package cn.puppy.postgres;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@Slf4j
@EnableScheduling
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan({"cn.puppy.postgres.demo.dao.db1", "cn.puppy.postgres.demo.dao.db2"})
public class PostgresApplication {
    public static void main(String[] args) {
        SpringApplication.run(PostgresApplication.class, args);
    }
}
